<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="full-screen" content="yes">
    <meta name="x5-fullscreen" content="true">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../../css/base.css">
    <title>JT²智管有方</title>
    <style>
        #download {
            background-color: #F6982B;
            text-decoration: none;
            height: 1.04rem;
            width: 5.04rem;
            text-align: center;
            line-height: 1.04rem;
        }

        #open {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: underline;
        }

        .mask {
            background-color: rgba(0, 0, 0, 0.5);
        }

        .mask > img {
            width: 200px;
            right: .3rem;
            position: absolute;
        }
    </style>
</head>
<body style="background-color: #4E7EF4;">
<div class="h-100-p flex-row align-items-center">
    <div class="flex-column align-items-center">
        <img class="w-100-p" src="https://zzb.jddglobal.com/customer/manager/download/zzb/png/download_img.png" alt="">
        <a id="download" class="c-white fs18 mt10" download href="javascript:void(0)">立即下载</a>
        <!--<a id="open" class="fs13 mt10" href="javascript:void(0)" style="display: none">已安装？点这里打开智管有方</a>-->
    </div>
    <div class="mask h-100-p w-100-p pos-f" style="display: none">
        <img src="https://zzb.jddglobal.com/customer/manager/download/zzb/png/guide.png" alt="">
    </div>
</div>
</body>
<script src="../../js/dict.js"></script>
<script src="../../js/jquery-3.4.1.min.js"></script>
<script src="../../js/checkJsBridge.js"></script>
<script src="../../js/utils.js"></script>
<script src="../../js/api.js"></script>
<script>
  const isWeiXin = (() => navigator.userAgent.toLowerCase().indexOf('micromessenger') !== -1)()

  function initPage(params) {
    const dom = $('#download')
    if (isWeiXin) {
      dom.click(() => {
        $('.mask').show()
      })
    } else {
      Server.download.getUpdateUrl().then(({code, body}) => {
        if (body) {
          dom.attr('href', body)
        }
      })
    }
    // $('#open').show().click(() => {
    //   location.href = 'jt2app://jt2.app/main'
    // })
  }
</script>
</html>